﻿using System;
using System.ComponentModel;
using System.Linq;
using Inaction.Core;
using Inaction.Mapping;
using System.ComponentModel.DataAnnotations;

namespace Inaction.Business.Security
{
    [Table("AssemblyClassResourceRole"), DisplayName("程序集类资源角色"), Serializable]
    public class AssemblyClassResourceRole : Abstract.AssemblyClassResourceRole<AssemblyClassResourceRole>
    {
        #region 子表

        #endregion

        protected override void OnPropertyChanged(IProperty property)
        {
            base.OnPropertyChanged(property);
            if (property == AllowSetProperty && AllowSet == true)
            {
                AllowGet = true;
            }
            else if (property == AllowGetProperty && AllowGet == false)
            {
                AllowSet = false;
            }
        }
    }

    [DisplayName("程序集类资源角色列表"), Serializable]
    public class AssemblyClassResourceRoleList : Inaction.Business.EntityList<AssemblyClassResourceRoleList, AssemblyClassResourceRole>
    {

    }
}
